package com.acme.bankapp.domain.bank;

import java.io.Serializable;

/**
 * Class organize work with Gender
 * @author Vasilyev Anton
 *
 */
public enum Gender implements Serializable{
	MALE("Mr. ", "gender=m;"),
	FEMALE("Ms. ", "gender=f;");
	
	private String stringRepresentation;
	private String unloadString;
	
	private Gender(String stringRep, String unloadString) {
		this.stringRepresentation = stringRep;
		this.unloadString = unloadString;
	}

	@Override
	public String toString() {
		return this.stringRepresentation;
	}
	
	/**
	 * @return String representation for load/unload Bank
	 */
	public String unload() {
		return this.unloadString;
	}
}